home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / man / cat3 / XmAddProtocolCallback.z / XmAddProtocolCallback
Encoding:
Text File  |  2003-11-18  |  4.5 KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmAAAAddddddddPPPPrrrroooottttooooccccoooollllCCCCaaaallllllllbbbbaaaacccckkkk((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmAAAAddddddddPPPPrrrroooottttooooccccoooollllCCCCaaaallllllllbbbbaaaacccckkkk((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       _X_m_A_d_d_P_r_o_t_o_c_o_l_C_a_l_l_b_a_c_k    - A VendorShell    function that adds
  10.       client callbacks for a protocol
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.       #include <Xm/Xm.h>
  14.       #include <Xm/Protocols.h>
  15.  
  16.       void XmAddProtocolCallback (sssshhhheeeellllllll,,,, pppprrrrooooppppeeeerrrrttttyyyy,,,, pppprrrroooottttooooccccoooollll,,,, ccccaaaallllllllbbbbaaaacccckkkk,,,, cccclllloooossssuuuurrrreeee)
  17.            _W_i_d_g_e_t       sssshhhheeeellllllll;
  18.            _A_t_o_m       pppprrrrooooppppeeeerrrrttttyyyy;
  19.            _A_t_o_m       pppprrrroooottttooooccccoooollll;
  20.            _X_t_C_a_l_l_b_a_c_k_P_r_o_cccccaaaallllllllbbbbaaaacccckkkk;
  21.            _X_t_P_o_i_n_t_e_r   cccclllloooossssuuuurrrreeee;
  22.  
  23.       _v_o_i_d _X_m_A_d_d_W_M_P_r_o_t_o_c_o_l_C_a_l_l_b_a_c_k (sssshhhheeeellllllll,,,, pppprrrroooottttooooccccoooollll,,,, ccccaaaallllllllbbbbaaaacccckkkk,,,, cccclllloooossssuuuurrrreeee)
  24.            _W_i_d_g_e_t       sssshhhheeeellllllll;
  25.            _A_t_o_m       pppprrrroooottttooooccccoooollll;
  26.            _X_t_C_a_l_l_b_a_c_k_P_r_o_cccccaaaallllllllbbbbaaaacccckkkk;
  27.            _X_t_P_o_i_n_t_e_r   cccclllloooossssuuuurrrreeee;
  28.  
  29.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  30.       _X_m_A_d_d_P_r_o_t_o_c_o_l_C_a_l_l_b_a_c_k    adds client callbacks for a protocol.
  31.       It checks if the protocol is registered, and if it is    not,
  32.       calls    _X_m_A_d_d_P_r_o_t_o_c_o_l_s.     It then adds the callback to the
  33.       internal list.  These    callbacks are called when the
  34.       corresponding    client message is received.
  35.  
  36.       _X_m_A_d_d_W_M_P_r_o_t_o_c_o_l_C_a_l_l_b_a_c_k is a convenience interface.  It
  37.       calls    _X_m_A_d_d_P_r_o_t_o_c_o_l_C_a_l_l_b_a_c_k with the property    value set to
  38.       the atom returned by interning _W_M__P_R_O_T_O_C_O_L_S.
  39.  
  40.       sssshhhheeeellllllll
  41.            Specifies the widget with which the protocol property
  42.            is associated.
  43.  
  44.       pppprrrrooooppppeeeerrrrttttyyyy
  45.            Specifies the protocol property.
  46.  
  47.       pppprrrroooottttooooccccoooollll
  48.            Specifies the protocol _A_t_o_m (or an _i_n_t type cast    to
  49.            _A_t_o_m).
  50.  
  51.       ccccaaaallllllllbbbbaaaacccckkkk
  52.            Specifies the procedure to call when a protocol message
  53.            is received.
  54.  
  55.       cccclllloooossssuuuurrrreeee
  56.            Specifies the client data to be passed to the callback
  57.            when it is invoked.
  58.  
  59.       For a    complete definition of VendorShell and its associated
  60.  
  61.  
  62.  
  63.      Page 1                        (printed 11/11/03)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXmmmmAAAAddddddddPPPPrrrroooottttooooccccoooollllCCCCaaaallllllllbbbbaaaacccckkkk((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmAAAAddddddddPPPPrrrroooottttooooccccoooollllCCCCaaaallllllllbbbbaaaacccckkkk((((3333XXXX))))
  71.  
  72.  
  73.  
  74.       resources, see _V_e_n_d_o_r_S_h_e_l_l(_3_X).
  75.  
  76.      RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
  77.       _V_e_n_d_o_r_S_h_e_l_l(_3_X), _X_m_A_d_d_P_r_o_t_o_c_o_l_s(_3_X),
  78.       _X_m_A_d_d_W_M_P_r_o_t_o_c_o_l_C_a_l_l_b_a_c_k(_3_X), and _X_m_I_n_t_e_r_n_A_t_o_m(_3_X).
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                        (printed 11/11/03)
  130.  
  131.  
  132.  
  133.